package tedu.study.day04;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);//新建一个扫描仪
        System.out.println("请选择功能：1.存款 2.取款 3.退卡");
        int command = scan.nextInt();//扫描整数并赋值给command
        System.out.println("输入的命令为："+command);

        switch(command){
            case 1:
                System.out.println("存款业务处理...");
                break;
            case 2:
                System.out.println("取款业务处理...");
                break;
            case 3:
                System.out.println("退卡");
                break;
            default:
                System.out.println("输入错误");
        }


        for (int i=0;i<10;i++){
            System.out.println("000"+i);
        }
    }
}
